if __name__ == '__main__':
    n, d = map(float, input().split())
    print(n, d)

    res = d * 2 ** n
    print(f'{round(res)}')
